'use strict';


module.exports = app => {
  const { STRING, CHAR,TEXT,DATE } = app.Sequelize; // 获取数据类型
  const OperationLog = app.modelmysql.define('operationlog',
    {
        id: {
            type: CHAR(27),
            primaryKey: true
        },  
        nickname: STRING,
        userId: STRING,
        tid:CHAR(27),
        desc: STRING,
        operationBefore:TEXT,
        operationAfter:TEXT,
        date:DATE
    }
  );
  return OperationLog;
};
